// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import VueRouter from 'vue-router'
import VueContextMenu from 'vue-contextmenu'

import ElementUI from 'element-ui';
import './styles/all.css';
import './styles/main.css';
import axios from 'axios';
import 'element-ui/lib/theme-chalk/index.css';
import iView from 'iview';
import 'iview/dist/styles/iview.css';

Vue.use(VueRouter)
Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.use(iView);

Vue.use(VueContextMenu)
Vue.prototype.$http = axios;
/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    components: { App },
    template: '<App/>'
})